package cn.itcast.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.sql.DataSource;

/**
 * @Author: taft
 * @Date: 2018-12-6 10:11
 */
@Controller
public class HelloController {

    @Autowired
    private DataSource dataSource;


    @GetMapping("hello")
    @ResponseBody
    public String sayHello(){
        return "hello yun9 everyone"+dataSource;
    }
}
